package com.niodata.dt.fs.ttl;

import java.util.Date;
import java.util.concurrent.atomic.AtomicInteger;


public class TtlProcessStatistics {

  private final AtomicInteger directoryScanned = new AtomicInteger(0);
  private final AtomicInteger fileDeleted = new AtomicInteger(0);
  private Date startTime;
  private Date endTime;

  public void increaseDirectoryCount(int delta) {
    this.directoryScanned.addAndGet(delta);
  }

  public void increaseFileCount(int delta) {
    this.fileDeleted.addAndGet(delta);
  }

  public Date getStartTime() {
    return startTime;
  }

  public void setStartTime(Date startTime) {
    this.startTime = startTime;
  }

  public Date getEndTime() {
    return endTime;
  }

  public void setEndTime(Date endTime) {
    this.endTime = endTime;
  }

  public int getDirectoryScanCount() {
    return directoryScanned.get();
  }

  public int getDeleteFileCount() {
    return fileDeleted.get();
  }
}
